<template>
	<view class="">
		
		<up-modal :show="modalShow"  title="显示核销二维码"   @close="onClose"  @confirm="onClose">
			<view class="slot-content"  v-if="modalShow" >
				 <u-qrcode :size="200" :val="qrcodeContent"></u-qrcode>
			</view>
		</up-modal>
	</view>
	
</template>

<script setup>
import { ref,computed, onMounted } from 'vue';
import { number } from '../../../uni_modules/uview-plus/libs/function/test';
	const props = defineProps({
		modalShow:{
			type: [Boolean,Number],
			default: false,
		},
		qrcodeContent:{
			type: String, 
			default: '',
		}
	});
	
	onMounted(()=>{
		console.log('显示二维码',props.modalShow, props.qrcodeContent)
	})
	
	const emits = defineEmits(['update:modalShow'])
	 
	 function onClose(){
		 // modalShow.value = !modalShow.value;
		 emits('update:modalShow', props.modalShow.value)
	 }
</script>

<style>
</style>